using System;
using System.Collections.Generic;
using System.Text;
using Dida;
using Dida.Test;

namespace Tests
{
	class TestConversions
	{
		public EulerRot rot;

		[TestMethod]
		public void TestQuaternionMatrixConversions()
		{
			Matrix4 fromEulerRot = rot.Matrix;
			Matrix4 fromQuaternion = rot.ToQuaternion().ToMatrix();

			for (int i = 0; i < 4; i++)
			{
				for (int j = 0; j < 4; j++)
				{
					Assert.FloatsEqual(fromEulerRot.rows[i][j], fromQuaternion.rows[i][j]);
				}
			}
		}
	}
}
